<template>
    <div class="sale-option">
        <div class="sale-optionTop">
       <span class="active">项目</span>
       <span>案列</span>
            <ul>
                <li class="onactive">智能排序</li>
                <li>离我最近</li>
                <li class="new">最新上架
                 <ul>
                     <li>销量最多</li>
                     <li>价格最多</li>
                 </ul>

                </li>
                <li>案例最多</li>
                <li>价格排序</li>
            </ul>
            <div class="inp">
                <Input v-model="value" placeholder="￥" style="width: 85px" /> —— <Input v-model="value" placeholder="￥" style="width: 85px" />
                <span>确定</span>
            </div>
        </div>
        <div class="sale-optionBtn">
            <CheckboxGroup v-model="social">
                <Checkbox label="twitter">
                    <span>支持保险</span>
                </Checkbox>
                <Checkbox label="facebook">
                    <span>公立医院</span>
                </Checkbox>
                <Checkbox label="github">
                    <span>尾款红包</span>
                </Checkbox>
                <Checkbox label="snapchat">
                    <span>限时秒杀</span>
                </Checkbox>
                <Checkbox label="snapchat">
                    <span>日记返现</span>
                </Checkbox>
            </CheckboxGroup>
        </div>
    </div>
</template>

<script>
    export default {
        name: "SaleOption",
        data () {
            return {
                social: ['twitter'],
                value: ''
            }
        }
    }
</script>

<style scoped lang="less">
    @import "../../style/style";
    .sale-option{
        height: 80px;
        border: solid 1px #dddddd;
        margin-bottom: 15px;
        margin-top: 15px;
        .sale-optionTop{
            height: 42px;
            background-color: #f5f5f5;
            border-bottom: solid 1px #dddddd;
            >span{
               display: block;
                width: 112px;
                height: 42px;
                float: left;
                line-height: 42px;
                text-align: center;
                border-right: 1px solid #dddddd;
                font-size: 16px;
                cursor: pointer;
            }
            .onactive{
                background-color: #ffffff;
                color:@theme-color-dark ;
            }
            .active{
                color:@theme-color-dark;
                border-bottom: 2px solid @theme-color-dark;
            }
            ul{
                .new:hover ul{
                    display: block;
                }
                li:hover{
                    color:@theme-color-dark;
                    background: white;
                }
                li{
                    width: 112px;
                    height: 40px;
                    line-height: 40px;
                    font-size: 12px;
                    text-align: center;
                    float: left;
                    border-right: 1px solid #dddddd;
                    color: #666666;
                    cursor: pointer;
                    >ul{
                        display: none;
                        position: absolute;
                        z-index: 2;
                        height: 84px;
                        border: 1px solid #dddddd;
                        background-color: #ffffff;
                        li{
                            float: none;
                        }
                       >:first-child{
                           border-bottom: 1px solid #dddddd;
                       }
                    }
                }
            }
            .inp{
                height: 40px;
                line-height: 40px;
                >:first-child{
                    margin-left:10px;
                }
                >span{
                    background-color: @theme-color-dark;
                    padding: 5px 15px;
                    color: white;
                    border-radius: 2px;
                    font-size: 14px;
                    margin-left: 25px;
                }
            }
        }
        .sale-optionBtn{
            padding-top: 10px;
            height: 36px;
            padding-left: 10px;
        }
    }
</style>